package cn.itsource.openfeign;

import cn.itsource.fallback.DriverSummaryOpenFeignFallbackFactory;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program fccar_tt
 * @Description
 * @Author TT
 * @Date 2024/09/04 17:39
 * @Version 1.0
 */
@FeignClient(value = "it-fccar-service-driver",fallbackFactory = DriverSummaryOpenFeignFallbackFactory.class)
@Component
public interface DriverSummaryOpenFeign {
    @GetMapping("/manager/driver/updateDriverSummery/{diverId}")
    JSONResult updateDriverSummery(@PathVariable("diverId") Long diverId);

    @GetMapping("/manager/driver/getDriverSummaryInfo")
    JSONResult getDriverSummaryInfo();

}
